package targets

import (
	. "haproxy-mgr-go/models"
	"github.com/astaxie/beego/orm"
)

func FindByIds(ids []int) []Targets {
	var targets []Targets
	orm.NewOrm().QueryTable("targets").Filter("id__in", ids).All(&targets)

	return targets
}
